package demo.single;

/**
 * @author wangql
 * 线程安全
 * 懒加载
 */
public class 内部类 {

    private 内部类() {
    }

    public static 内部类 getInstance() {
        return SingletonHolder.neiBuLei;
    }

    private static class SingletonHolder {
        private static final 内部类 neiBuLei = new 内部类();
    }
}
